package com.gzpi.hwgggh.controller;

import com.gzpi.hwgggh.service.StatisticsService;
import com.gzpi.hwgggh.utils.PageBean;
import com.gzpi.hwgggh.utils.Result;
import com.gzpi.hwgggh.vo.ClickTableVo;
import com.gzpi.hwgggh.vo.StatisticsGraphVo;
import com.gzpi.hwgggh.vo.StatisticsTableVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.xml.bind.SchemaOutputResolver;
import java.util.Map;

/**
 * @date : 2021-01-07 16:33
 **/
@RestController
@RequestMapping("statistics")
@CrossOrigin
public class StatisticsController {

    @Autowired
    private StatisticsService statisticsService;

    /**
     * 总统计表
     * @param statisticsTableVo
     * @return
     */
    @RequestMapping(value = "selectDWstatisticsTable.do")
    public Result selectDWstatisticsTable(StatisticsTableVo statisticsTableVo){
        return statisticsService.selectDWstatisticsTable(statisticsTableVo);
    }

    /**
     * 广告牌图像
     * @param graphVo
     * @return
     */
    @RequestMapping(value = "/GroupCountGGP.do")
    public Result GroupCountGGP(StatisticsGraphVo graphVo){
        return statisticsService.GroupCountGGP(graphVo);
    }

    /**
     * 点位图形
     * @param graphVo
     * @return
     */
    @RequestMapping(value = "/GroupCountDW.do")
    public Result GroupCountDW(StatisticsGraphVo graphVo){
        return statisticsService.GroupCountDW(graphVo);
    }

    @RequestMapping(value = "/clickTable.do")
    public Result clickTable(ClickTableVo clickTableVo){
       return statisticsService.clickTable(clickTableVo);
    }

    @RequestMapping(value = "/getCCSum.do")
    public Result getCCSum(StatisticsGraphVo graphVo){
        return statisticsService.getCCSum(graphVo);
    }

    @RequestMapping("/getJGSum.do")
    public Result getJGSum(StatisticsGraphVo graphVo){
        return statisticsService.getJGSum(graphVo);
    }

}
